<!doctype html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>追加和移除样式</title>
  <link rel="stylesheet" href="./css/demo1.css" />
  <script src="./js/jquery-3.6.1.min.js"></script>
  <script src="./js/demo1.js"></script>
</head>
<body>
<div class="box">
  <h2 class="title">jQuery操作CSS</h2>
  <p class="text">
    css()设置或返回样式属性<br>
    addClass()增加一个或多个类<br>
    removeClass()移除一个或多个类
  </p>
</div>
</body>
</html>
